home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / MacDOS 1.0.1 / MacDOS™ 1.0.1 / MacDOS™ 1.0.1.rsrc / TEXT_149_IF.txt < prev    next >
Encoding:
Text File  |  1993-10-23  |  905 b   |  17 lines

  1. Performs conditional processing in batch.
  2.  
  3. IF [NOT] {string1==string2 | EXIST filename | EXISTDIR name} {command | batch}
  4.  
  5.   NOT               negates the condition.
  6.   string1, string2  can contain replaceable parameters and global variables.
  7.   EXIST filename    is true if the specified file exists. 'filename' can be
  8.                     wildcarded and preceded by a volume and path spec. If
  9.                     'filename' identifies a directory the condition is not
  10.                     satisfied.
  11.   EXISTDIR name     is true if the specified directory exists. 'name' can be
  12.                     preceded by a volume and path spec. If 'name' identifies a
  13.                     file the condition is not satisfied.
  14.   command           is the command to be executed if the condition is satisfied.
  15.   batch             identifies the batch file to be executed if the condition
  16.                     is satisfied.
  17.